import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SGuildBookParty
    
    export  class SGuildBookParty extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildBookParty();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.playerId);
            arg1.writeInt(this.type);
            arg1.writeInt(this.hour);
            arg1.writeBool(this.isSuccess);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.playerId = arg1.readInt();
            this.type = arg1.readInt();
            this.hour = arg1.readInt();
            this.isSuccess = arg1.readBool();
            return;
        }

        public /* const */_type: int=12110;

        public /* var */playerId: int;

        public /* var */type: int;

        public /* var */hour: int;

        public /* var */isSuccess: Boolean;

        public static /* var */_regist: SGuildBookParty;
    }

            SGuildBookParty._regist = new SGuildBookParty(true);
        